
<template id="dialog">
    <div class="dark-mask" v-if="dialog">
        <div class="dialog">
            <div class="hd">
                <strong class="dialog-title">{{dialog.title ? dialog.title : '提示'}}</strong>
            </div>
            <div class="bd">{{dialog.msg}}</div>
            <div class="ft">
                <a href="javascript:;" class="dialog-btn dialog-btn-default" v-if="dialog.btn && dialog.btn[1]"
                   v-on:click="dialogConfirm(2)">{{dialog.btn[1].content}}</a>
                <a href="javascript:;" class="dialog-btn dialog-btn-primary" v-on:click="dialogConfirm(1)">
                    {{dialog.btn && dialog.btn[0].content ? dialog.btn[0].content : '确定'}}</a>
            </div>
        </div>
    </div>
</template>
